﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TMS.ProjectService;
using TMS.ProjectServiceImplement.DAL;

namespace TMS.ProjectServiceImplement
{
    public class ProjectService : IProjectService
    {
        #region IProjectService Members

        public List<ProjectServiceModel.Project> GetAllProject()
        {
            return ProjectPublishDAL.GetAllProject();
        }

        public ProjectServiceModel.Project Insert(ProjectServiceModel.Project project)
        {
            return ProjectPublishDAL.Insert(project);
        }

        public ProjectServiceModel.Project Update(ProjectServiceModel.Project project)
        {
            return ProjectPublishDAL.Update(project);
        }

        public void Delete(int id)
        {
            ProjectPublishDAL.Delete(id);
        }

        public ProjectServiceModel.Project Get(int id)
        {
            return ProjectPublishDAL.Get(id);
        }

        #endregion
    }
}
